package com.easywan.vo;

public class Pages {
	int page = 1;
	int pageSize = 15;
	
	int pageCount;
	int pageAllSize;
	Long start = 0L;
	public int getPage() {
		return page;
	}
	public Pages setPage(int page) {
		start = (page-1L)*pageSize;
		this.page = page;
		return this;
	}
	public Integer getPageSize() {
		return pageSize;
	}
	public Pages setPageSize(int pageSize) {
		this.pageSize = pageSize;
		return this;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageAllSize = pageCount / pageSize;
		if(pageCount % pageSize != 0){
			pageAllSize++;
		}
		this.pageCount = pageCount;
	}
	public int getPageAllSize() {
		return pageAllSize;
	}
	public void setPageAllSize(int pageAllSize) {
		this.pageAllSize = pageAllSize;
	}
	public Long getStart() {
		return start;
	}
	
	
}
